﻿using Budgetsch.Web.EntityModel;
using Budgetsch.Web.Services;

namespace Budgetsch.ViewModels.Costs
{
    public class EditCostVM : CostDetailVMBase
    {
        public EditCostVM(BudgetschDomainContext context_, Cost editedCost_)
            : base(context_)
        {
            Cost = editedCost_;
        }

        public override void Commit()
        {
            m_context.SubmitChanges();
        }
    }
}
